package cn.egame.extraction.multithread.util;

import java.util.TreeMap;

public class EnumType_EFS {
    public enum InputErrorFileAppendType {
    	append("a"), rewrite("r");
        String _value = "";

        private static TreeMap<String, InputErrorFileAppendType> _map;

        static {
            _map = new TreeMap<String, InputErrorFileAppendType>();
            for (InputErrorFileAppendType num : InputErrorFileAppendType.values()) {
                _map.put(num.getValue(), num);
            }
        }

        public static InputErrorFileAppendType lookup(String value) {
        	InputErrorFileAppendType type = _map.get(value);
            if (type == null) {
                return append;
            }
            return type;
        }

        InputErrorFileAppendType(String value) {
            this._value = value;
        }

        public String getValue() {
            return _value;
        }
    }
    
    public enum EfsInfoFromType {
        fromFile(0), fromUrl(1);
        int _value = 0;

        private static TreeMap<Integer, EfsInfoFromType> _map;

        static {
            _map = new TreeMap<Integer, EfsInfoFromType>();
            for (EfsInfoFromType num : EfsInfoFromType.values()) {
                _map.put(new Integer(num.getValue()), num);
            }
        }

        public static EfsInfoFromType lookup(int value) {
        	EfsInfoFromType type = _map.get(new Integer(value));
            if (type == null) {
                return fromFile;
            }
            return type;
        }

        EfsInfoFromType(int value) {
            this._value = value;
        }

        public int getValue() {
            return _value;
        }
    }
}
